// JavaScript Document

$(document).ready(function() {
	alert(JSON.stringify(Data.taskObj));
		//upLoadImg('doing-bottomPic', 'up-img-b.html');
		var xxx = $("#doing-bottomPic");
		alert(xxx.length);
		$(xxx[xxx.length-1]).text("XXXXXXXXXXXXXXX");
		
		if(Data.taskObj.browseFoot == 0) {
			$("#browse-foot").hide();
		}
	
	$("#bz-pay-bt").click(function() {
		alert();
		submitPay();
	});
	
});
	
/*
点击下一步（提交数据）
*/
function submitPay() {
	var taskId = Data.taskObj.taskId;
	var bottomPic = $("#imgUrl_doing-bottomPic").val();
	
	if(Data.taskObj.browseFoot == 1 && bottomPic.length < 10) {
		msgDialog("请上传“宝贝详情页底部”截图！[error:221]");
		return ;
	}
	
	var params = {
		"taskId": taskId,
		"bottomPic": bottomPic,
	};

	AQ.callAQ("hasPay.do", params,
		function(result) {
			msgDialog("操作成功");
		},
		function(err, code){
			msgDialog(err+"[code:"+code+"]");
		}
	);
}
